package com.example.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * author：sunweihao
 * 创建时间：2021/3/26 20:37
 * Describe：
 */
public class MessageReceiver extends BroadcastReceiver {
    private static final String TAG = "MessageReceiver";
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        Log.d(TAG, "onReceive: action is -->"+action);
        Log.d(TAG, "onReceive: content is -->"+intent.getStringExtra(Constants.KEY_CONTENT));
    }
}
